@layout("/common/_container.html",{js:["/assets/basic/basicCustomer/basicCustomer.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">Customer Management</span> <!-- 客户表管理 -->
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
		                    <div class="layui-inline">
		                        <select id="customerOperateId" name="customerOperateId">
                            <option value="">All Projects</option> <!-- 选择项目 -->
		                            @for(item in basicOperatelist!){
		                            <option value="${item.id}">${item.operateName}</option>
		                            @}
		                        </select>
		                    </div>
                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="Customer Name/Code"/> <!-- 客户名称/编号 -->
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>Search</button> <!-- 搜索 -->
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>Add</button> <!-- 添加 -->
                                @if(shiro.hasPermission("/basicCustomer/export")){
                                    <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>Export</button> <!-- 导出 -->
                                @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="basicCustomerTable" lay-filter="basicCustomerTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">Edit</a> <!-- 修改 -->
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">Delete</a> <!-- 删除 -->
</script>

<script type="text/html" id="statusTpl">
    <input type="checkbox" name="status" lay-filter="status" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.status==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>

<script type="text/html" id="pullStoragetaskXlbTpl">
    <input type="checkbox" name="pullStoragetaskXlb" lay-filter="pullStoragetaskXlb" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.pullStoragetaskXlb==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>

<script type="text/html" id="pullYuyueXlbTpl">
    <input type="checkbox" name="pullYuyueXlb" lay-filter="pullYuyueXlb" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.pullYuyueXlb==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>
<script type="text/html" id="pullReturnXlbTpl">
    <input type="checkbox" name="pullReturnXlb" lay-filter="pullReturnXlb" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.pullReturnXlb==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>

<script type="text/html" id="needCheckTpl">
    <input type="checkbox" name="needCheck" lay-filter="needCheck" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.needCheck==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>

<script type="text/html" id="generateTmsTpl">
    <input type="checkbox" name="generateTms" lay-filter="generateTms" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.generateTms==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>
<script type="text/html" id="inWarehousingTpl">
    <input type="checkbox" name="inWarehousing" lay-filter="inWarehousing" value="{{d.id}}" lay-skin="switch" lay-text="Enable|Disable" {{d.inWarehousing==1 ? 'checked' : ''}} /> <!-- 启用|禁用 -->
</script>

@}